Skip to content

Conversation

@luasenvy
Copy link

Description

purpose:
support timeseries array labels

problem:
currently client.ts.create() is allow LABELS options for only { [key: string]: string }.
so, cannot use multiple label with same key like:

TS.CREATE MyKey labels hashtag=helloworld hashtag=ineed hashtag=multiple hashtag=labels

solve:
this PR is allow Array<string> too.

const LABELS = {
  hashtag: ['helloworld', 'ineed', 'multiple', 'labels'],
  someother: 'mykey'
}
await client.ts.create('MyKey', { LABELS })

I couldn't find any related issues. sorry for my search availity.

I think this feature will help make the code better.


Checklist

  • Does npm test pass with this change (including linting)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

@luasenvy luasenvy changed the title support timeseries array labels support timeseries multiple labels with same key Dec 29, 2023
@github-actions
Copy link

This pull request has been automatically marked as stale due to inactivity.
It will be closed in 30 days if no further activity occurs.

@github-actions github-actions bot added the stale label Oct 29, 2025
@luasenvy luasenvy closed this Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant